import { axios } from '@/utils/request'
export function getStaffPage(parameter) {
  parameter.pageNum = parameter.current;
  parameter.pageSize = parameter.size;
  return axios({
    url: '/sys/hr/admin/staff/pageQueryStaffByOrgId',
    method: 'post',
    data:parameter
  })
}
export function addStaff(parameter) {
  return axios({
    url: '/sys/hr/admin/staff/add',
    method: 'post',
    data:parameter
  })
}
export function editStaff(parameter) {
  return axios({
    url: '/sys/hr/admin/staff/update',
    method: 'post',
    data:parameter
  })
}
export function delStaff(parameter) {
  return axios({
    url: '/sys/hr/admin/staff/remove',
    method: 'post',
    data:parameter
  })
}

export function enableStaff(parameter) {
  return axios({
    url: '/sys/hr/admin/staff/disOrEnable',
    method: 'post',
    data:parameter
  })
}
export function getDepartmentStaffData(orgId) {
  orgId = orgId ? orgId : '';
  return axios({
    url: '/sys/hr/admin/staff/listStaffByOrgId?orgId='+orgId,
      method: 'get',
  })
}